import 'package:cached_network_image/cached_network_image.dart';
import 'package:card_topia/design_specifications.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///我的卡片item

class MyCardItem extends StatelessWidget {
  const MyCardItem({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          CachedNetworkImage(
            imageUrl: "https://cdn.233.momobako.com/ygopro/pics/80071763.jpg",
            fadeInDuration: Duration.zero,
          ),
          SizedBox(height: 8.w,),
          Text("[游戏王]黑暗大法师",style: TextStyle(fontSize: 12.sp,fontFamily: harmony,color: textColor),),
          SizedBox(height: 4.w,),
          Row(
            children: [
              Expanded(child: Text("稀有度",style: TextStyle(fontSize: 10.sp,fontFamily: harmony,color: descColor),)),
              Text("SSR",style: TextStyle(fontSize: 10.sp,fontFamily: harmony,color: descColor),),
            ],
          ),
          SizedBox(height: 4.w,),
          Row(
            children: [
              Expanded(child: Text("持有张数",style: TextStyle(fontSize: 10.sp,fontFamily: harmony,color: descColor),)),
              Text("123",style: TextStyle(fontSize: 10.sp,fontFamily: harmony,color: descColor),),
            ],
          ),

        ],
      ),
    );
  }
}
